//第二列为关键字
function row2() {
	// 声明变量
	var input, filter, table, tr, td, i;
	input = document.getElementById("myInput");
	filter = input.value.toUpperCase();
	table = document.getElementById("ManagementTable");
	tr = table.getElementsByTagName("tr");
  
	// 循环表格每一行，查找匹配项
	for (i = 0; i < tr.length; i++) {
	  td = tr[i].getElementsByTagName("td")[1];
	  if (td) {
		if (td.innerHTML.toUpperCase().indexOf(filter) > -1) {
		  tr[i].style.display = "";
		} else {
		  tr[i].style.display = "none";
		}
	  } 
	}
  }
//第三列为关键字
  function row3(){
	  // 声明变量
	var input, filter, table, tr, td, i;
	input = document.getElementById("myInput");
	filter = input.value.toUpperCase();
	table = document.getElementById("ManagementTable");
	tr = table.getElementsByTagName("tr");
  
	// 循环表格每一行，查找匹配项
	for (i = 0; i < tr.length; i++) {
	  td = tr[i].getElementsByTagName("td")[2];
	  if (td) {
		if (td.innerHTML.toUpperCase().indexOf(filter) > -1) {
		  tr[i].style.display = "";
		} else {
		  tr[i].style.display = "none";
		}
	  } 
	}
  }
//第四列为关键字
  function row4(){
	// 声明变量
  var input, filter, table, tr, td, i;
  input = document.getElementById("myInput");
  filter = input.value.toUpperCase();
  table = document.getElementById("ManagementTable");
  tr = table.getElementsByTagName("tr");

  // 循环表格每一行，查找匹配项
  for (i = 0; i < tr.length; i++) {
	td = tr[i].getElementsByTagName("td")[3];
	if (td) {
	  if (td.innerHTML.toUpperCase().indexOf(filter) > -1) {
		tr[i].style.display = "";
	  } else {
		tr[i].style.display = "none";
	  }
	} 
  }
}
  
//Effect选择搜索
  function Select_Search1(){
	// 声明变量
  var input,select, filter, table, tr, td, i; 
  input = document.getElementById("myInput");
  select =document.forms["searchgroup"]["Search_Select"].value;
  filter = input.value.toUpperCase();
  table = document.getElementById("ManagementTable");
  tr = table.getElementsByTagName("tr");
  
  if(select=="indexe"){
	  for (i = 0; i < tr.length; i++) {
			td = tr[i].getElementsByTagName("td")[1];
			if (td) {
			  if (td.innerHTML.toUpperCase().indexOf(filter) > -1) {
				tr[i].style.display = "";
			  } else {
				tr[i].style.display = "none";
			  }
			} 
		  }
  }else if(select=="phe"){
	  for (i = 0; i < tr.length; i++) {
		td = tr[i].getElementsByTagName("td")[2];
		if (td) {
		  if (td.innerHTML.toUpperCase().indexOf(filter) > -1) {
			tr[i].style.display = "";
		  } else {
			tr[i].style.display = "none";
		  }
		} 
	  }
  }else{
	  for (i = 0; i < tr.length; i++) {
		td = tr[i].getElementsByTagName("td")[3];
		if (td) {
		  if (td.innerHTML.toUpperCase().indexOf(filter) > -1) {
			tr[i].style.display = "";
		  } else {
			tr[i].style.display = "none";
		  }
		} 
	  }
  }
  
}
  
//Introduce选择搜索，Example选择搜索
  function Select_Search2(){
		// 声明变量
	  var input,select, filter, table, tr, td, i; 
	  input = document.getElementById("myInput");
	  select =document.forms["searchgroup"]["Search_Select"].value;
	  filter = input.value.toUpperCase();
	  table = document.getElementById("ManagementTable");
	  tr = table.getElementsByTagName("tr");
	  
	
	  if(select=="indexe"){
		  for (i = 0; i < tr.length; i++) {
			td = tr[i].getElementsByTagName("td")[1];
			if (td) {
			  if (td.innerHTML.toUpperCase().indexOf(filter) > -1) {
				tr[i].style.display = "";
			  } else {
				tr[i].style.display = "none";
			  }
			} 
		  }
	  }else{
		  for (i = 0; i < tr.length; i++) {
			td = tr[i].getElementsByTagName("td")[2];
			if (td) {
			  if (td.innerHTML.toUpperCase().indexOf(filter) > -1) {
				tr[i].style.display = "";
			  } else {
				tr[i].style.display = "none";
			  }
			} 
		  }
	  }
	  
	}
  